import requests
import json
from jsonpath_rw import parse,jsonpath
class RunTest:

    def post_main(self):
        heder={
        "Content-type": "application/json",
        "Authorization": "te32211tokenooo88800",
        "tet":"121"
    }
        url='http://iosapi.jiahuiku.cn/api/user/v1/briefInfo?id=200513490216230224'
        # tets=requests.get(method=''heder=heder,url=url)
        # print(tets)
        # date={"status":200,"message":"success","data":"eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIyMTQiLCJ1c2VySWQiOiIyMDA1MTM0OTAyMTYyMzAwMDEiLCJuYW1lIjoibW9iaWxlIiwiZXhwIjozNzg2ODcwODg5fQ.QYtnMszVa0yAKS0wvyvCmfVm5EVPwLQoV6TUAhYiFb87egBlYYR1Uer0CKOf5AyM6bYe7XMIgehXTEUEi2vjWuw9kYyjnDoAUgvKCGXAPdjQwxz75KSYAC1QabXYtxZgVv1RZGBLrMRNFFpECsR1WQkD69jkCj0O-NeCXAwKDDs"}
        # res="data"
        # json_exe=parse(res)
        # print(json_exe)
        # madle=json_exe.find(date)
        # print([math.value for math in madle][0])


        # data={
        #     "error_code":0,
        #     "stu_info":[{
        #         "id":""
        #         "name":"111"
        #     }]
        # }
        # # url = ''
        # # header = {"Content-type": "application/json"}
        # # data = {}
        # # res = requests.post(url=url, data=json.dumps(data), headers=header)
        # # print(res.text)
        # date={"status":200,"message": "success","data": "eyJhbGciOiJSUzI1NiJ9.eyJzdWIiOiIxMDkiLCJ1c2VySWQiOiIyMDA1MTM0OTAyMTYyMzAwMDEiLCJuYW1lIjoibW9iaWxlIiwiZXhwIjozNzg1OTMzNDIwfQ.SYzVSY2zH0pgwAkWlmqr22BueQIn9opDLaqBCbkzDPCrI2RdpaQ1hh6n2zKzZcFuHXGmgsNqKm7fnyyH3eHzQEFa2z2uNsKpFofFF7UXx4QYBNST3Do5Jzz-CtbfmydEv5C-AvfPglDXwDy1FIBNPBTz1lu20iQ4xTuIYZ7KyAs"}


#         # json_expr=parse(date["data"])
#         # print(json_expr)
#         # male=json_expr.find(date["data"])
#         # print(male)

#
if __name__ == '__main__':
    run=RunTest()
    run.post_main()
#     # run.go_on_run()
#     # print(run.post_main())

